package com.study.service.impl.member;

import com.study.service.api.member.MemberService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: BacHe
 * @email: 1218585258@qq.com
 * @Date: 2020/9/8 23:42
 */
@RestController
public class MemberServiceImpl implements MemberService {

    @Value("${server.port}")
    private String port;

    @Override
//    @GetMapping("/getUser")  继承自接口的。
    public String getUser(Integer userId) {
        return "我是会员服务："+port;
    }
}
